﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <%=ViewBag.Message%></title>
    <script src="/Scripts/extjs-utils.js" type="text/javascript"></script>
    <style type="text/css">
        .bar-title .x-form-display-field
        {
            color: rgb(98, 0, 255);
            font-size: 14px;
            font-weight: bold;
        }
        .top-banner
        {
        }
        .project-title
        {
            float: left;
            float: right;
            font-weight: bold;
            color: #FC7850;
            margin-top: 20px;
        }
    </style>
</head>
<body>
        <div>
        <ext:resourcemanager id="ResourceManager1" runat="server" Theme="Gray">
        </ext:resourcemanager>
        <ext:viewport id="Viewport1" runat="server" layout="BorderLayout" paddingspec="0 0 0 0">
            <Content>
                <% linkUser.Text = (Membership.GetUser() != null ? "<b>" + Membership.GetUser().UserName + "</b>" : "Not Login");%>
                        <ext:Toolbar runat="server" Region="South" Height="25px">
                            <Items>
                                <ext:ToolbarTextItem runat="server" Text="You are logged in as: "></ext:ToolbarTextItem>
                                <ext:LinkButton runat="server" ID="linkUser" Text="Not Login">
                                    <Listeners>
                                         <Click Handler="addTab(#{Pages}, 'Change Password', '/Account/ChangePassword');" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:ToolbarSeparator runat="server"/>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:LinkButton runat="server" Text="Logout">
                                    <Listeners>
                                        <Click Handler="window.location = '/Account/LogOff'" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:ToolbarSeparator runat="server"/>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:HyperLink runat="server" Text="My Profiles"></ext:HyperLink>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:ToolbarSeparator runat="server"/>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:HyperLink runat="server" Text="Message(3)"></ext:HyperLink>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:ToolbarSeparator runat="server"/>
                                <ext:ToolbarSpacer runat="server"/>
                                <ext:HyperLink runat="server" Text="Help"></ext:HyperLink>
                                <ext:ToolbarFill runat="server"/>
                                <ext:ToolbarTextItem runat="server" Text="<b style='color:darkgreen'>Đinh Đức Tân - Đồ án tốt nghiệp - ext.net mvc 3</b>"></ext:ToolbarTextItem>

                            </Items>
                        </ext:Toolbar>
                <ext:Panel runat="server" Collapsible="True" Region="East" Split="true" Title="Menu"
                    Border="false" Header="false" Collapsed="false"  Width="200">
                    <Content>
                        <ext:Panel runat="server" Layout="Accordion" Title="<i>Forum Data</i>" Collapsible="True" Icon="PageWhiteDatabase">
                            <Items>
                                <ext:MenuPanel  runat="server" ID="menuHome" Title="Home" Icon="Mail"   >
                                    <Menu id="Menu1"  runat="server">
                                        <Items>
                                                <ext:MenuItem  runat="server" Icon="LockEdit" Text="Change Password">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Change Password', '/Account/ChangePassword');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                <ext:MenuItem  runat="server" Icon="ControlPowerBlue" Text="Logout">
                                                    <Listeners>
                                                        <Click Handler="window.location = '/Account/LogOff'" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                           </Items>
                                    </Menu>
                                </ext:MenuPanel>
                                 <ext:MenuPanel  runat="server"  Title="Member" Icon="User"   >
                                    <Menu id="Menu2"  runat="server">
                                        <Items>
                                                <ext:MenuItem  runat="server" Icon="UserGo" Text="Member List">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Member List', '/Member/Index');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                <ext:MenuItem  runat="server" Icon="UserMagnify" Text="Group Member">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Group Member', '/Member/GroupMemberList');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                               
                                           </Items>
                                    </Menu>
                                </ext:MenuPanel>
                                 <ext:MenuPanel  runat="server" Title="Forum Manager" Icon="ShapeGroup" Scale="Medium">
                                    <Menu>
                                       
                                            <Items>
                                                <ext:MenuItem ID="MenuItem1" runat="server" Text="List Category" Icon="ShapesMany">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Category', '/Forum/ListCategory');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                <ext:MenuItem ID="MenuItem2" runat="server" Text="List Forum" Icon="ShapeSquareLink">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Forum', '/Forum/Index');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                <ext:MenuItem ID="MenuItem3" runat="server" Text="Forum Type" Icon="ShapeSquareGo">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Forum Type', '/Forum/ListForumType');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                            </Items>
                                      
                                    </Menu>
                                </ext:MenuPanel>
                                
                                <ext:MenuPanel runat="server" Title="Topic Manager" Icon="Pictures" Scale="Medium">
                                    <Menu>
                                     <Items>
                                                <ext:MenuItem  ID="MenuItem4" runat="server" Text="Topic List" Icon="PictureLink">
                                                    <Listeners>
                                                         <Click Handler="addTab(#{Pages}, 'Topic', '/Topic/Index');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                <ext:MenuItem  ID="MenuItem5" runat="server" Text="Topic Notification" Icon="PictureGo">
                                                    <Listeners>
                                                         <Click Handler="addTab(#{Pages}, 'Topic Notification', '/Topic/NotifList');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                
                                            </Items>
                                   </Menu>
                                </ext:MenuPanel>                                
                               
                                <ext:MenuPanel  runat="server" Title="Message Manager" Icon="Comment" Scale="Medium">
                                    <Menu>
                                            <Items>
                                                <ext:MenuItem ID="MenuItem6" runat="server" Text="List Message" Icon="CommentEdit">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'List Message', '/Message/Index');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                
                                                <ext:MenuItem ID="MenuItem7" runat="server" Text="Thanks" Icon="CommentPlay">
                                                    <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Thanks', '/Message/ThankList');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                            </Items>
                                    </Menu>
                                </ext:MenuPanel>
                            </Items>
                            
                        </ext:Panel>
                        <ext:Panel runat="server" Layout="Accordion" Title="<i>Site Data</i>" Collapsible="True" Icon="FolderPage">
                            <Items>
                                <ext:MenuPanel runat="server" Title="News" Icon="Newspaper" Scale="Medium">
                                    <Menu>
                                        <Items>
                                        <ext:MenuItem runat="server" Text="List News" Icon="NewspaperLink" ID="MenuItem8">
                                            <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'All News', '/News/Index');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        
                                        <ext:MenuItem runat="server" Text="Group News" Icon="NewspaperGo" ID="MenuItem9">
                                            <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Group News', '/News/ListGroupNews');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        </Items>
                                    </Menu>
                                </ext:MenuPanel>
                                
                                <ext:MenuPanel runat="server" Title="Dishes" Icon="CupTea" Scale="Medium">
                                    <Menu>
                                        <Items>
                                        <ext:MenuItem runat="server" Text="List Dishes" Icon="CupLink" ID="MenuItem10">
                                            <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'All Dishes', '/Dishes/Index');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        
                                        <ext:MenuItem runat="server" Text="Group Dishes" Icon="CupGo" ID="MenuItem11">
                                            <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'Group Dishes', '/Dishes/ListGroupDishes');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        </Items>
                                    </Menu>
                                </ext:MenuPanel>
                                
                                <ext:MenuPanel runat="server" Title="Restaurant" Icon="House" Scale="Medium">
                                    <Menu>
                                        <Items>
                                        <ext:MenuItem runat="server" Text="List Restaurant" Icon="HouseLink" ID="MenuItem12">
                                            <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'All Restaurant', '/Restaurant/Index');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        </Items>
                                    </Menu>
                                </ext:MenuPanel>
                                
                                <ext:MenuPanel runat="server" Title="Site Friend" Icon="Page" Scale="Medium">
                                    <Menu>
                                        <Items>
                                        <ext:MenuItem runat="server" Text="List SiteFriend" Icon="PageLink" ID="MenuItem13">
                                            <Listeners>
                                                        <Click Handler="addTab(#{Pages}, 'All SiteFriend', '/SiteFriend/Index');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        </Items>
                                    </Menu>
                                </ext:MenuPanel>

                            </Items>
                        </ext:Panel>
                        
                    </Content>
                </ext:Panel>
                <ext:Panel runat="server" Layout="Fit" Region="Center" Title="Center" Header="false"
                    Border="false">
                    <Items>
                        <ext:TabPanel ID="Pages" runat="server" EnableTabScroll="true">
                            <Plugins>
                                <ext:TabCloseMenu ID="TabCloseMenu1" runat="server">
                                </ext:TabCloseMenu>
                            </Plugins>
                            <Items>
                                <ext:Panel ID="Home" runat="server" Title="Dashboard" AutoScroll="true">
                                    <Loader Url="/Dashboard/Index" Mode="Frame" runat="server">
                                        <LoadMask ShowMask="true" />
                                    </Loader>
                                </ext:Panel>
                            </Items>
                        </ext:TabPanel>
                    </Items>
                </ext:Panel>
                
            </Content>
        </ext:viewport>
    </div>

</body>
</html>

